
<!DOCTYPE html>

<html>
    <head>
        <meta charset = "utf-8">
        <title>Test</title>
        <body>
            演示html Call UE函数,并获得返回值    
        </body>
           
        <body>
            <button onclick = "Test()">Call Function_UE</button>

            <SCript>
                function Test(){
                    //必须 函数必须是ue中call的对象，且必须小写,必须加异步, UE返回值必须是ReturnValue
                    ue.obj.testfunction().then(function(ReturnValue){

                        alert("Call ue function" + ReturnValue);
                    });
                }
            </SCript>

        </body>


    </head>
</html>